/**
 * Created by xukj on 2018/6/6.
 */

import * as types from '../constants/ActionTypes';

export function showAdAction(adId) {
  return {
    type: types.SHOW_AD_DETAIL_PAGE,
    payload: adId,
  };
}

export function showArticleAction(articleId) {
  return {
    type: types.SHOW_ARTICLE_DETAIL_PAGE,
    payload: articleId,
  };
}
export function showGoodsAction(goodsId) {
  return {
    type: types.SHOW_GOODS_DETAIL_PAGE,
    payload: goodsId,
  };
}

export function showSearchAction() {
  return {
    type: types.SHOW_SEARCH_PAGE,
  };
}

export function showPublishAction() {
  return {
    type: types.SHOW_PUBLISH_PAGE,
  };
}